Package edu.uky.ai.ml.nn
Class Neuron
java.lang.Object
edu.uky.ai.ml.nn.Neuron
- Direct Known Subclasses:
InputNeuron
public class Neuron
extends java.lang.Object
A neuron is the fundamental building block of a neural network and is meant
to roughly parallel a biological neuron. A neuron has a value as well as
some number of edges leading to and from it.
- Author:
- Stephen G. Ware
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Neuron() -
Method Summary
Modifier and Type Method Description doublegetValue()Returns the current value of this neuron based on the input it is receiving from its parents and its activation functions, which in this case is the sigmoid function.
-
Field Details
-
Constructor Details
-
Neuron
public Neuron()
-
-
Method Details
-
getValue
public double getValue()Returns the current value of this neuron based on the input it is receiving from its parents and its activation functions, which in this case is the sigmoid function.- Returns:
- the neuron's value
-